from sqlalchemy.orm import declarative_base

from db.database import engine

Base = declarative_base()

def init_db():
    # Import all models here before calling Base.metadata.create_all()
    # so that they will be registered properly on the metadata.
    from . import models
    Base.metadata.create_all(bind=engine)
